package com.woniuxy.portal.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName t_book
 */
@TableName(value ="t_book")
public class Book implements Serializable {
    /**
     * 
     */
    @TableId
    private Long id;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private Integer typeId;

    /**
     * 
     */
    private String publisher;

    /**
     * 
     */
    private Date publicationDate;

    /**
     * 
     */
    private String author;

    /**
     * 
     */
    private double price;

    /**
     * 
     */
    private String detail;

    /**
     * 
     */
    private String imgSrc;

    /**
     * 
     */
    private Integer collectionCount;

    /**
     * 
     */
    private Integer storeCount;

    /**
     * 
     */
    private Integer buyCount;

    /**
     * 点击量
     */
    private Integer readCount;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 
     */
    private Integer state;

    /**
     * 
     */
    private Integer version;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getName() {
        return name;
    }

    /**
     * 
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 
     */
    public Integer getTypeId() {
        return typeId;
    }

    /**
     * 
     */
    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    /**
     * 
     */
    public String getPublisher() {
        return publisher;
    }

    /**
     * 
     */
    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    /**
     * 
     */
    public Date getPublicationDate() {
        return publicationDate;
    }

    /**
     * 
     */
    public void setPublicationDate(Date publicationDate) {
        this.publicationDate = publicationDate;
    }

    /**
     * 
     */
    public String getAuthor() {
        return author;
    }

    /**
     * 
     */
    public void setAuthor(String author) {
        this.author = author;
    }

    /**
     * 
     */
    public double getPrice() {
        return price;
    }

    /**
     * 
     */
    public void setPrice(double price) {
        this.price = price;
    }

    /**
     * 
     */
    public String getDetail() {
        return detail;
    }

    /**
     * 
     */
    public void setDetail(String detail) {
        this.detail = detail;
    }

    /**
     * 
     */
    public String getImgSrc() {
        return imgSrc;
    }

    /**
     * 
     */
    public void setImgSrc(String imgSrc) {
        this.imgSrc = imgSrc;
    }

    /**
     * 
     */
    public Integer getCollectionCount() {
        return collectionCount;
    }

    /**
     * 
     */
    public void setCollectionCount(Integer collectionCount) {
        this.collectionCount = collectionCount;
    }

    /**
     * 
     */
    public Integer getStoreCount() {
        return storeCount;
    }

    /**
     * 
     */
    public void setStoreCount(Integer storeCount) {
        this.storeCount = storeCount;
    }

    /**
     * 
     */
    public Integer getBuyCount() {
        return buyCount;
    }

    /**
     * 
     */
    public void setBuyCount(Integer buyCount) {
        this.buyCount = buyCount;
    }

    /**
     * 点击量
     */
    public Integer getReadCount() {
        return readCount;
    }

    /**
     * 点击量
     */
    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }

    /**
     * 
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 
     */
    public Integer getState() {
        return state;
    }

    /**
     * 
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 
     */
    public Integer getVersion() {
        return version;
    }

    /**
     * 
     */
    public void setVersion(Integer version) {
        this.version = version;
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", typeId=").append(typeId);
        sb.append(", publisher=").append(publisher);
        sb.append(", publicationDate=").append(publicationDate);
        sb.append(", author=").append(author);
        sb.append(", price=").append(price);
        sb.append(", detail=").append(detail);
        sb.append(", imgSrc=").append(imgSrc);
        sb.append(", collectionCount=").append(collectionCount);
        sb.append(", storeCount=").append(storeCount);
        sb.append(", buyCount=").append(buyCount);
        sb.append(", readCount=").append(readCount);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", state=").append(state);
        sb.append(", version=").append(version);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}